<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateApppagesTable extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('apppages', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name', 100)->nullable()->comment('页面名称');
            $table->string('title', 100)->nullable()->comment('页面显示名');
            $table->string('subtitle', 100)->nullable()->comment('副标题');
            $table->integer('applciation_id')->nullable()->default(0)->unsigned()->comment('所属应用');
            $table->string('release', 100)->nullable()->comment('应用版本');
            $table->string('ui', 191)->nullable()->comment('设计图');
            $table->integer('pagetpl_id')->default(0)->unsigned()->comment('页面模板');
            $table->string('description')->nullable()->comment('描述');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('apppages');
    }
}
